/**
 * @Author: 陈瑞鹏
 * @Date:   2023-10-30 16:41:43
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2023-11-30 15:40:15
 */
import mongoose from 'mongoose';
const Schema = mongoose.Schema;
//抽奖配置 表
const DrawSchema: mongoose.Schema = new Schema({
  roomId: { type: Number, display: '房间ID', index: true },
  roleId: { type: Number, display: '房主ID', index: true },
  excludeArr: { type: Array, display: "不参与抽奖roleId", default: [] },
  drawData: { type: Array, display: "抽奖配置数据" },
  updateTime: { type: String, display: "修改时间" },
  createTime: { type: String, display: '创建时间' },
}).index({ roomId: 1 });
const Draw = mongoose.model('Draw', DrawSchema);
export default Draw;